package com.hongfan.oauth.service;
import com.hongfan.common.dto.AuthUserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 根据人事服务获取用户信息
 *
 * @author 占传森
 */
@FeignClient("hf-privilege-api")
public interface UserFeignService {

    @GetMapping("/user/loadByUsername")
    AuthUserDto loadUserByUsername(@RequestParam String username);
}
